Mean squared error
The average loss per example when L2 loss is used. Calculate MSE as follows:1
- Calculate the L2 loss for a batch.
- Divide the L2 loss by the number of examples in the batch.
Mean Squared Error is a popular training optimizer, particularly for linear regression.1
Formula
where:
- is the number of examples.
- is the actual value of the label.
- is the model’s prediction for .